package com.kk.app.utils;

import android.util.Log;


import com.kk.app.render.gles.EglCore10;

import javax.microedition.khronos.egl.EGLContext;

public class EglEnv {
    private static EglCore10 mEglCore;

    private static final String TAG = "[EglEnv]";
    public static void init() {
        Log.i(TAG, "init: ");
        mEglCore = new EglCore10();
        Log.i(TAG, "eglContext init: "+mEglCore.geteGLContext());
        mEglCore.geteGLContext();
    }

    public static EGLContext getSharedEGLContext() {
        if (mEglCore == null)
            return null;
        return mEglCore.geteGLContext();
    }


}
